import request from '@/utils/request'

// 查询【营业报表】列表
export function listDay(query) {
  return request({
    url: '/financing/deal_per_day/getDealPerDayList',
    method: 'get',
    params: query
  })
}

// 查询收入列表某条数据的详情
export function getReceiptPlanList(query) {
  return request({
    url: '/financing/deal_per_day/getReceiptPlanList',
    method: 'get',
    params: query
  })
}

// 查询支出列表某条数据的详情
export function getPaymentPlanList(query) {
  return request({
    url: '/financing/deal_per_day/getPaymentPlanList',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getDay(id) {
  return request({
    url: '/financing/deal_per_day/' + id,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addDay(data) {
  return request({
    url: '/financing/deal_per_day',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateDay(data) {
  return request({
    url: '/financing/deal_per_day',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delDay(id) {
  return request({
    url: '/financing/deal_per_day/' + id,
    method: 'delete'
  })
}
